package org.dromara.quick.chat.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 悟空IM的webhook
 * @Author: Stars
 * @Date: 2025/5/18 19:31
 */
@Tag(name = "悟空IM的webhook")
@RequiredArgsConstructor
@RestController
@RequestMapping("/wu/kong/webhook")
public class WuKongWebhookController {

    /**
     * webhook调用
     * @param event
     * @param body
     */
//    @PostMapping("/webhook")
//    public void postWebhook(String event,@RequestBody String body) {
//        System.out.println(event);
//        System.out.println(body);
//    }


    @PostMapping("/webhook")
    public void postWebhook(String event) {
        System.out.println(event);
    }
}
